﻿using Microsoft.AspNetCore.Razor.TagHelpers;

namespace ReaWTM.LayuiHelper
{


	[HtmlTargetElement("wt:dialog-scroll", ParentTag = "wt:dialog", TagStructure = TagStructure.NormalOrSelfClosing)]
	public class DialogScrollTagHelper : BaseTag
	{

		public override void Process(TagHelperContext context, TagHelperOutput output)
		{
			SetCascadeValue(context, this);

			output.TagName = "div";
			output.TagMode = TagMode.StartTagAndEndTag;
			output.Attributes.SetAttribute("class", $"wtm-dialog-scroll");

		}

	}
}
